package com.tepestech.pfautocard.activity

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Message
import com.tepestech.pfautocard.R

class LoadingActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_loading)
        val handler:MHandler = MHandler(this)
        handler.sendEmptyMessageDelayed(0,1000)
    }

    class MHandler(val con :LoadingActivity):Handler(){
         override fun handleMessage(msg: Message?) {
             con.startActivity(Intent(con,RoleSelectingActivity::class.java))
             con .finish()
        }
    }
}
